package com.springsecurity.data.repositories;

import com.springsecurity.data.domains.DBObject;
import java.util.List;
import org.springframework.data.repository.CrudRepository;

/**
 *
 * @author Evgeny Obednin
 */
public interface DBObjectRepository extends CrudRepository<DBObject, Integer> {
    
    public List<DBObject> findByObjectTypeId(Integer objectTypeId);
    
    public List<DBObject> findByObjectTypeIdAndName(Integer objectTypeId, 
            String name);
    
    public List<DBObject> findByDescriptionLike(String description);
    
    public List<DBObject> findByName(String name);
    
    public List<DBObject> findByNameLike(String name);
    
}
